import { post, get, del } from '@/helpers/request'

export const addLeaveForm = (userId, startTime, endTime, type, reason) => post('/addLeaveForm', { userId, startTime, endTime, type, reason })

export const deleteLeaveForm = (id, userId) => post('/deleteLeaveForm', { id, userId })

export const auditPass = (id, userId) => post('/auditPass', { id, userId })
export const auditRefuse = (id, userId, refuseReason) => post('/auditRefuse', { id, userId, refuseReason })
